<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>LegendBox.addKey2</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="LegendBox.htm">LegendBox</a>.<wbr>addKey2</p>
<hr class="separator">
<p class="heading2a">Usage</p>
<div class="content">
public void addKey2(int pos, String text, int color [, int lineWidth [, DrawArea drawarea ]])
</div>
<p class="heading2">Description</p>
<div class="content">
Adds a custom entry to the legend box with a given legend entry priority.<br><br>
See <a href="LegendBox.htm">LegendBox</a> for more information on legend entry priority system.
</div>
<p class="heading2">Arguments</p>
<div class="content">
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Argument</th><th width="19%">Default</th><th>Description</th>
</tr>
<tr>
<td>pos</td><td>(Mandatory)</td><td>The legend entry priority</td></tr><tr><td>text</td><td>(Mandatory)</td><td>The text of the legend entry.</td></tr><tr><td>color</td><td>(Mandatory)</td><td>The icon color of the legend entry.</td></tr><tr><td>lineWidth</td><td>0</td><td>The line width for legend entry that represents lines in line charts.</td></tr><tr><td>drawarea</td><td>[Null]</td><td>A DrawArea containing the data symbol for the legend entry. This is primarily used for legend entries in scatter charts or in line charts with data symbols.</td>
</tr>
</table>
</div>
</div>
<p class="heading2">Return Value</p>
<div class="content">
None
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
